package server.io.game.attr;

public class Position_Base
{
	public int x;
	public int y;
	public int w;
	public int h;
	public int dx;
	public int dy;
	public int dw;
	public int dh;

	public Position_Base(int x, int y, int w, int h)
	{
		super();
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
	}
	
	public Position_Base(int x, int y, int w, int h, int dx, int dy)
	{
		super();
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.dx = dx;
		this.dy = dy;
	}

	/**
	 * 偏移xy
	 * @param p
	 * @param dx
	 * @param dy
	 * @param dw
	 * @param dh
	 */
	public Position_Base(Position_Base p, int dx, int dy, int w, int h)
	{
		super();
		this.x = p.x;
		this.y = p.y;
		this.w = w;
		this.h = h;
		this.dx = dx;
		this.dy = dy;
	}

}
